package com.ylong.mapper;

import com.ylong.dto.Source;
import com.ylong.entity.Target;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * SourceTargetMapper:${DESCRIPTION}
 *
 * @author: zhaoyl
 * @date: 2020/12/10
 */
@Mapper
public interface SourceTargetMapper {
    SourceTargetMapper MAPPER = Mappers.getMapper(SourceTargetMapper.class);

    @Mapping(source = "test", target = "testing")
    @Mapping(source = "test1", target = "testing1")
    Target toTarget(Source s);
}
